<meta title="新增频道" width="600" args="channel"/>
<style>
</style>
<form s="valid,form,nda,datac"
      s-data="channel"
      method="put"
      action="/api/channel/{channel.id}"
      id="form" class="form-horizontal">
    <table class="table">
        <tr>
            <td>频道名称</td>
            <td>
                <input autocomplete="off" type="text" name="name" s-valid-error="require()" class="form-control" placeholder="频道名称">
            </td>
        </tr>
    </table>
</form>
<script>
    S.meta.btns = [
        {
            name: "确定",
            style: "btn btn-primary",
            click: function() {
                return $form.submit().done(function() {
                    S.close(true)
                })
            }
        },
        {
            name: "关闭",
            style: "btn btn-default",
            click: function() {
                S.close();
            }
        }
    ]

</script>